﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace P1
{
    class Person
    {
        private string _name;
        
        public string Name { get {return this._name; } set {this._name=value; } }
        
        public int Per()
        {
            Console.WriteLine("请出拳：1.剪刀 2.石头 3.布 (输入相应数字):");
            int per = int.Parse(Console.ReadLine());
            switch (per)
            {
                case 1:
                    Console.WriteLine($"{this.Name}：出拳: 剪刀");
                    break;
                case 2:
                    Console.WriteLine($"{this.Name}：出拳: 石头");
                    break;
                case 3:
                    Console.WriteLine($"{this.Name}：出拳: 布");
                    break;
            }
            return per;
        }

    }
}
